import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
import { DateConverter } from '@farris/kendo-binding';
var DataGridComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DataGridComponentViewmodelForm, _super);
    function DataGridComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'employeeID.employeeID_Name',
            name: "{{employeeID_EmployeeID_Name_9cda177f_p4x3}}",
            binding: 'employeeID.employeeID_Name',
            updateOn: 'blur',
            defaultI18nValue: '报销人',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "employeeID_EmployeeID_Name", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'domainID.domainID_name',
            name: "{{domainID_DomainID_name_33639652_uvc6}}",
            binding: 'domainID.domainID_name',
            updateOn: 'blur',
            defaultI18nValue: '所属部门',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "domainID_DomainID_name", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'billCode',
            name: "{{billCode_c41eab6f_u5x0}}",
            binding: 'billCode',
            updateOn: 'blur',
            defaultI18nValue: '单据编号',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "billCode", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'totalSum',
            name: "{{totalSum_9a3abc0f_rm2g}}",
            binding: 'totalSum',
            updateOn: 'blur',
            defaultI18nValue: '报帐金额',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "totalSum", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'billType',
            name: "{{billType_6c66ce5f_09ar}}",
            binding: 'billType',
            updateOn: 'change',
            defaultI18nValue: '报销类型',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "billType", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'billDate',
            name: "{{billDate_ab442bbe_hn0h}}",
            binding: 'billDate',
            updateOn: 'blur',
            valueConverter: new DateConverter('yyyy-MM-dd'),
            defaultI18nValue: '制单日期',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "billDate", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'projectID',
            name: "{{projectID_b93ca002_27am}}",
            binding: 'projectID',
            updateOn: 'blur',
            defaultI18nValue: '所属项目',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "projectID", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'billNote',
            name: "{{billNote_05d60079_u2js}}",
            binding: 'billNote',
            updateOn: 'blur',
            defaultI18nValue: '报销说明',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "billNote", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'projectMrg.projectMrg_Name',
            name: "{{projectMrg_ProjectMrg_Name_2b937789_jhtg}}",
            binding: 'projectMrg.projectMrg_Name',
            updateOn: 'blur',
            defaultI18nValue: '项目经理',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "projectMrg_ProjectMrg_Name", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'auditStatus',
            name: "{{auditStatus_9769d3ae_ioq3}}",
            binding: 'auditStatus',
            updateOn: 'change',
            defaultI18nValue: '稽核状态',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "auditStatus", void 0);
    DataGridComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '报销单',
            enableValidate: false
        }),
        Injectable()
    ], DataGridComponentViewmodelForm);
    return DataGridComponentViewmodelForm;
}(Form));
export { DataGridComponentViewmodelForm };
